import request from '@/utils/request'

//获取多级字典
export function getMultiDict(data) {
	return request({
		url: '/business/multiDict/frontList',
		method: 'post',
		params: data
	})
}
//获取列表
export function getFrontList(params, data) {
	return request({
		url: '/business/notice/frontList',
		method: 'post',
		params: params,
		data: data
	})
}
//获取详情
export function getInfo(id) {
	return request({
		url: '/business/notice/get/' + id,
		method: 'get'
	})
}
//获取列表
export function getNewsList(params) {
	return request({
		url: '/business/noticeNews/frontList',
		method: 'post',
		params: params,
		data: {}
	})
}
//获取轮播
export function getCarousel(tenantId) {
	return request({
		url: '/business/noticeNews/carousel?tenantId=' + tenantId,
		method: 'post'
	})
}
//获取部门
export function getDept(tenantId) {
	return request({
		url: '/system/dept/frontList?tenantId=' + tenantId,
		method: 'post'
	})
}
//获取详情
export function getNewsInfo(id) {
	return request({
		url: '/business/noticeNews/get/' + id,
		method: 'get'
	})
}
//获取列表
export function getMemberList(params,data) {
	return request({
		url: '/business/teamMember/frontList',
		method: 'post',
		params: params,
		data: data
	})
}
//获取详情
export function getMemberInfo(id) {
	return request({
		url: '/business/teamMember/get/' + id,
		method: 'get'
	})
}
//获取搜索
export function getSearch(data) {
	return request({
		url: '/es/notice/frontList',
		method: 'post',
		data:data
	})
}
//搜索详情
export function searchInfo(id) {
	return request({
		url: '/es/notice/get/' + id,
		method: 'get'
	})
}
